<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/styles/pager.css" rel="stylesheet" type="text/css" />
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/jquery.pager.js" type="text/javascript"></script> 
<script src="/js/jquery.jeditable.mini.js" type="text/javascript"></script> 
<script src="/js/jquery.confirm.js" type="text/javascript"></script> 
<script type="text/javascript" language="javascript">
var add_url = '/menu/add/parentid/$parentid/parentname/$parentname/';
PageClick = function(pageclickednumber) {
    $("#pager").pager({ pagenumber: pageclickednumber, pagecount: $PageCount, buttonClickCallback: PageClick });
    $.ajax({
        url: "/menu/indexajax/parentid/$parentid/page/"+pageclickednumber+"/",
        cache: false,
        success: function(html){
            $("#divtablelist").html(html);
        }
    });
}
$(document).ready(function() {
	$.ajax({
	    url: "/menu/indexajax/parentid/$parentid/page/1/",
	    cache: false,
	    success: function(html){
		    $("#divtablelist").html(html);
	    }
	});
    $("#pager").pager({ pagenumber: 1, pagecount: $PageCount, buttonClickCallback: PageClick });
});
</script>
</head>
<body>
<h1>
{checkallow menu add}
<span class="action-span"><a href="void(0);" onclick="location.href=add_url;return false;">新建菜单</a></span>
{/checkallow}
<span class="action-span1"><a href="/index/main/">管理中心</a> </span><span id="search_id" class="action-span1"> - 管理菜单 </span>
<div style="clear:both"></div>
</h1>
<form method="post" action="" name="listForm">
<div id='divtablelist'></div>
<input type="hidden" value="/menu/index/parentid/$parentid/parentname/$parentname/" name="forward">
</form>
<div id="pager"></div>
<div style="clear:both"></div> 
{template 'footer.html'}
</body>
</html>